import axios from '@/apis';

// 案例

const Api = {
  GET_LOGIN: '/api/login',
  GET_ROOM_DETAIL: '/getUsers',
} as const;

interface LoginParams {
  username: string;
  password: string;
}

export const loginApi = (params: LoginParams) => {
  return axios.post<Recordable<string>>(Api.GET_LOGIN, params);
};
